package com.lp.mgt.mappers;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;

import com.lp.mgt.entities.Department;

@Mapper
public interface DepartmentMapper {

	List<Department> getDepartmentsToLoadTree(Department dept);

	Integer insertNewDepartment(Department dept);

	Integer updateDepartmentWhenEdit(Department dept);

	Integer deleteDepartmentById(Department dept);

	List<String> getChildDeptByParentID(String fjid);

	List<Department> getBrothersByParentId(Department dept);

	void batchUpdateDepartment(List<Department> bros);

}
